package com.qiaofang.collectmanagebff.service.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2017/8/14.
 */
@Component
@ConfigurationProperties("configUtils")
public class ConfigUtils {

    private ConfigUtils(){}

    /**
     * 文件上传最大数量,单位(M)
     */
    private static Integer maxSize = 10;

    /**
     * 分批次数
     */
    private static Integer batchCount=1024;

    public static Integer getMaxSize() {
        return maxSize;
    }

    public static void setMaxSize(Integer maxSize) {
        ConfigUtils.maxSize = maxSize;
    }

    public static Integer getBatchCount() {
        return batchCount;
    }

    public static void setBatchCount(Integer batchCount) {
        ConfigUtils.batchCount = batchCount;
    }
}
